#ifndef IMAGEMODEL_H
#define IMAGEMODEL_H

#include "content/articlecontent.h"

#include <QObject>
#include <QAbstractListModel>
#include <QtQml/qqml.h>

class ImageModel : public QAbstractListModel
{
    Q_OBJECT
public:

    enum ImageRoles {
        ImageRole = Qt::UserRole + 1
    };

    ImageModel(QObject *parent = 0);


    int rowCount(const QModelIndex & parent = QModelIndex()) const;
    QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;

public slots:

    void setContentImageArticle(const QList<TextData>& _contentImageItems);

protected:
    QHash<int, QByteArray> roleNames() const;

    QList<TextData> m_contentImageItems;


};

#endif // IMAGEMODEL_H
